package com.lgt_enterprise_android.view.dialogs;


import android.view.View;

import com.dialogs.BaseBottomFragmentDialog;
import com.lgt_enterprise_android.Constant;
import com.lgt_enterprise_android.R;
import com.lgt_enterprise_android.utils.CommonUtil;


public class SelectPicDialog extends BaseBottomFragmentDialog {

    @Override
    public int getResLayoutId() {
        return R.layout.logout_select_pic;
    }

    @Override
    public void initView() {
        findViewById(R.id.txt_cancel).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });

        findViewById(R.id.txt_camera).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                CommonUtil.takePicFromCamera(getActivity(), Constant.CAMERA_APP,System.currentTimeMillis()+".jpg");
                dismiss();
            }
        });

        findViewById(R.id.txt_gallary).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                CommonUtil.takePicFromGallery(getActivity());
                dismiss();
            }
        });
    }

    @Override
    public void initData() {

    }
}
